function basicUniRequest(url, data, method) {
	return new Promise((resolve, reject) => {
		uni.request({
			url: url,
			data: data,
			method: method,
			success(res) {
				if (res.data.errCode === 0) {
					resolve(res.data.data)
				} else {
					reject(res.data)
				}
			},
			fail(err) {
				reject(err.data)
			}
		})
	});
}

export const appServerLogin = (loginInfo) => {
	return basicUniRequest('http://121.37.25.71:42233/auth/login', loginInfo, 'POST');
}


